package mil.af.amc.adpetracker.dao;

import org.springframework.security.userdetails.jdbc.JdbcDaoImpl;
import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.userdetails.UsernameNotFoundException;
import org.springframework.dao.DataAccessException;
import mil.af.amc.adpetracker.model.Account;

/**
 * Please Fill in this Javadoc
 *
 * @author TSgt Jason Ferguson
 */

public class AccountJdbcDaoImpl extends JdbcDaoImpl {

    private String[] userInfoObjectTypes;

    public void setUserInfoObjectTypes(String[] userInfoObjectTypes) {
        this.userInfoObjectTypes = userInfoObjectTypes;
    }

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException {

        UserDetails user = super.loadUserByUsername(username);
        Account acct = (Account) user;
        return super.loadUserByUsername(username);
    }
}
